//
//  CharacterStepDefinitionViewController.swift
//  SkylowAPP
//
//  Created by 青色石头 on 2024/9/21.
//

import UIKit

class CharacterStepDefinitionViewController: UIViewController {

    
    @IBOutlet weak var firstNameTF: UITextField!
    @IBOutlet weak var lastNameTF: UITextField!
    @IBOutlet weak var bioTF: UITextField!
    
    @IBOutlet weak var lifeStoryTView: Pai_TextView!
    
    @IBOutlet weak var greetingTView: Pai_TextView!
    
    
    override func viewDidLoad() {
        super.viewDidLoad()

        config()
    }


   

}

fileprivate extension CharacterStepDefinitionViewController {
    
    func config() {
        firstNameTF.attributedPlaceholder = NSAttributedString(string: "Type your first name here.", attributes: [.font: UIFont.regular(12), .foregroundColor: UIColor.colorWith(hexString: "#D6D6D6")])
        lastNameTF.attributedPlaceholder = NSAttributedString(string: "Type your last name here.", attributes: [.font: UIFont.regular(12), .foregroundColor: UIColor.colorWith(hexString: "#D6D6D6")])
        bioTF.attributedPlaceholder = NSAttributedString(string: "Add a short discrption of your character", attributes: [.font: UIFont.regular(12), .foregroundColor: UIColor.colorWith(hexString: "#D6D6D6")])
        
        lifeStoryTView.placeholder = "add a life story to your character"
        lifeStoryTView.placeholderColor = .colorWith(hexString: "#D6D6D6")
        
        greetingTView.placeholder = "The first thing your character will say at the beginning of every chat. You can use *italics* for your character’s actions for RP."
        greetingTView.placeholderColor = .colorWith(hexString: "#D6D6D6")
    }
}
